package cn.seocoo.platform.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.seocoo.platform.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 认证缴费订单表 tb_auth_order
 * 
 * @author wujian
 * @date 2019-12-30
 */
public class AuthOrder extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键id */
	private Integer id;
	/** tb_app_user表的主键id */
	private Integer appUserId;
	/** 订单号 */
	private String orderNumber;
	/** 订单金额(分) */
	private Integer amount;
	/** 付款金额(分) */
	private Integer payAmount;
	/** 实收金额(分) */
	private Integer receiptAmount;
	/** 交易流水号 */
	private String tradeNo;
	/** 支付方式(1:支付宝;2微信) */
	private String payType;
	/** 支付时间 */
	private Date payTime;
	/** 订单状态(0:待支付;1已支付;2;订单取消;9已退款) */
	private String orderStatus;
	/** 删除状态：0正常，1删除 */
	private String delFlag;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setAppUserId(Integer appUserId) 
	{
		this.appUserId = appUserId;
	}

	public Integer getAppUserId() 
	{
		return appUserId;
	}
	public void setOrderNumber(String orderNumber) 
	{
		this.orderNumber = orderNumber;
	}

	public String getOrderNumber() 
	{
		return orderNumber;
	}
	public void setAmount(Integer amount) 
	{
		this.amount = amount;
	}

	public Integer getAmount() 
	{
		return amount;
	}
	public void setPayAmount(Integer payAmount) 
	{
		this.payAmount = payAmount;
	}

	public Integer getPayAmount() 
	{
		return payAmount;
	}
	public void setReceiptAmount(Integer receiptAmount) 
	{
		this.receiptAmount = receiptAmount;
	}

	public Integer getReceiptAmount() 
	{
		return receiptAmount;
	}
	public void setTradeNo(String tradeNo) 
	{
		this.tradeNo = tradeNo;
	}

	public String getTradeNo() 
	{
		return tradeNo;
	}
	public void setPayType(String payType) 
	{
		this.payType = payType;
	}

	public String getPayType() 
	{
		return payType;
	}
	public void setPayTime(Date payTime) 
	{
		this.payTime = payTime;
	}

	public Date getPayTime() 
	{
		return payTime;
	}
	public void setOrderStatus(String orderStatus) 
	{
		this.orderStatus = orderStatus;
	}

	public String getOrderStatus() 
	{
		return orderStatus;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appUserId", getAppUserId())
            .append("orderNumber", getOrderNumber())
            .append("amount", getAmount())
            .append("payAmount", getPayAmount())
            .append("receiptAmount", getReceiptAmount())
            .append("tradeNo", getTradeNo())
            .append("payType", getPayType())
            .append("payTime", getPayTime())
            .append("orderStatus", getOrderStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
